﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using YXQ.Dao;
using YXQ.Dao.ViewModel;
using YXQ.Service;

namespace YXQ.Manager.Manager
{
    public partial class ItemList : BaseAdminPage
    {
        public ProjectModel mdl = new ProjectModel();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (reqID > 0) {
                mdl = CenterService.projectService.GetOneById(reqID);
                ltrPName.Text = mdl.ProjectName;
            }
            
            List<ItemModel> items = CenterService.itemService.GetList(reqID);
            repList.DataSource = items;
            repList.DataBind();
        }
    }
}